#!/bin/bash

# run_bochs.sh
# mounts the correct loopback device, runs bochs, then unmounts.

sudo losetup /dev/loop1 $1
sudo mount -o loop /dev/loop1 /mnt
sudo /home/james/os/bochs-2.3/bochs -f ../bochs/bochsrc.txt $2
sudo umount /dev/loop1
sudo losetup -d /dev/loop1
